package com.efast.dmom.aps.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.dmom.aps.bean.RouteLines;
import com.efast.dmom.aps.bean.ResultBean;
import com.efast.dmom.aps.service.RouteLinesService;
@RequestMapping("/ApsRouteLines")
@Controller
public class RouteLinesController {
	@Autowired
	private RouteLinesService apsRouteLinesService;
	
	@RequestMapping("/insertApsProductRouteLines")
	public @ResponseBody ResultBean insertApsProductRouteLines(@RequestBody RouteLines apsRouteLines) {
		ResultBean insertApsProductRouteLines = apsRouteLinesService.insertApsRouteLines(apsRouteLines);
		return insertApsProductRouteLines;
		
	}
	
	@RequestMapping("/updateApsProductRouteLines")
	public @ResponseBody ResultBean updateApsProductRouteLines(@RequestBody RouteLines apsRouteLines) {
		ResultBean updateApsProductRouteLines = apsRouteLinesService.updateApsRouteLines(apsRouteLines);
		return updateApsProductRouteLines;
	}
	
	@RequestMapping("/deleteRouteLines")
	public @ResponseBody ResultBean deleteApsProductRouteLines(@RequestBody RouteLines productRouteLines) {
//		ResultBean deleteApsProductRouteLines = apsRouteLinesService.deleteApsRouteLines(productRouteLines.getRouteLinesId());
//		return deleteApsProductRouteLines;
		return null;
		
	}

}
